<?php
/**
 * Formulaire de suppression d'un contact
 * @author Etienne AUDOUIN <etienne.audouin@ingesup.com>
 * @author Adrien MARIANELLI <adrien.marianelli@ingesup.com>
 * @version 1.0
 * @package view_contact_delete
 */
$deleteContactAttributes = array();
foreach ($contacts as $contact){
    $deleteContactAttributes[$contact->id] = $contact->first_name.' '.$contact->name;
}
echo form_fieldset('Delete a contact');
echo form_open();
echo '<table id="table_deleteContact">';
echo '<tr>';
echo '<th> Remove </th>';
echo '<td>'.form_dropdown('dropdown_deleteContact', $deleteContactAttributes).'</td>';
echo '</tr>';
echo '</table>';
echo form_submit(null, 'Delete');
echo form_close();
echo form_fieldset_close();
?>